package com.yya.ratelimiter.enums;

/**
 * @Autor: yuanyongan
 * @Description:
 * @Date 2023/1/12 11:27
 */
public enum LimitationAlgorithmType {
    CounterWindowAlg("counterWindow", "计数器固定窗口限流算法"),
    TokenBucketAlg("tokenBucket","令牌桶限流算法"),
    SlidingWindowAlg("slidingWindow","滑动窗口限流算法");
    /**
     * 算法名称
     */
    final String name;
    /**
     * 算法描述
     */
    final String desc;
    LimitationAlgorithmType(String name, String desc){
        this.name = name;
        this.desc = desc;
    }
}
